From 7d9f129a72a41dc41c4808af06bc32c92a1ebe9e Mon Sep 17 00:00:00 2001 From: "sos22@labyrinth.cl.cam.ac.uk" Date: Mon, 7 Jul 2003 15:18:36 +0000 Subject: [PATCH] bitkeeper revision 1.292 (3f098f4cFNE1UMMqfaE3NZIaO_hGvA) Dead code elimination. --- .../arch/xeno/drivers/dom0/dom0_core.c | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/xenolinux-2.4.21-sparse/arch/xeno/drivers/dom0/dom0_core.c b/xenolinux-2.4.21-sparse/arch/xeno/drivers/dom0/dom0_core.c index 28ad53abef..60ea20a649 100644 --- a/xenolinux-2.4.21-sparse/arch/xeno/drivers/dom0/dom0_core.c +++ b/xenolinux-2.4.21-sparse/arch/xeno/drivers/dom0/dom0_core.c @@ -55,24 +55,6 @@ unsigned long direct_mmap(unsigned long, unsigned long, pgprot_t, int, int); int direct_unmap(unsigned long, unsigned long); int direct_disc_unmap(unsigned long, unsigned long, int); -static unsigned char readbuf[1204]; - -static int dom0_cmd_read(struct file *fp, char *buf, size_t count, loff_t *off) -{ - int copied, maxlen; - if (count > 1024) - count = 1024; - maxlen = strlen(readbuf); - if (count > maxlen) - count = maxlen; - copied = count - copy_to_user(buf, readbuf, count); - *readbuf = '\0'; - if (copied != count) - return -EFAULT; - else - return copied; -} - static ssize_t dom_usage_read(struct file * file, char * buff, size_t size, loff_t * off) { char str[256]; @@ -458,7 +440,6 @@ static int dom0_cmd_ioctl(struct inode *inode, struct file *file, static struct file_operations dom0_cmd_file_ops = { - read : dom0_cmd_read, write : dom0_cmd_write, ioctl : dom0_cmd_ioctl }; @@ -469,7 +450,6 @@ static int __init init_module(void) xeno_base = proc_mkdir("xeno", &proc_root); /* xeno control interface */ - *readbuf = '\0'; dom0_cmd_intf = create_proc_entry("dom0_cmd", 0600, xeno_base); if ( dom0_cmd_intf != NULL ) -- 2.30.2